import Vue from 'vue'
import App from './App.vue'
import Cookies from 'js-cookie'
import Element from 'element-ui'
import '@/assets/styles/element-variables.scss'
import '@/assets/styles/index.scss' // global css
import '@/assets/styles/ruoyi.scss' // ruoyi css

import './permission' // 路由跳转的逻辑
import store from './store'
import router from './router'
import plugins from './plugins' // plugin
import {download} from '@/utils/request'
import {parseTime, resetForm, addDateRange, selectDictLabel, selectDictLabels, handleTree} from "@/utils/ruoyi";
import './assets/icons' // icon
Vue.prototype.parseTime = parseTime
Vue.prototype.resetForm = resetForm
Vue.prototype.addDateRange = addDateRange
Vue.prototype.selectDictLabel = selectDictLabel
Vue.prototype.selectDictLabels = selectDictLabels
Vue.prototype.download = download
Vue.prototype.handleTree = handleTree
Vue.config.productionTip = false
Vue.config.devtools =true;
Vue.use(plugins)
Vue.use(Element, {
  size: Cookies.get('size') || 'medium' // set element-ui default size
})
new Vue({
  render: h => h(App),
  router,
  store,
}).$mount('#app')
